import axios from 'axios';

const url = '/adminapi/setting/';

/**
 * 上传配置
 */
export function apiUploadConfig(data?: any, method = 'get') {
  if (method === 'get') {
    return axios.get(`${url}uploadConfig`, { data });
  }
  return axios.post(`${url}uploadConfig`, data);
}

/**
 * 支付配置
 */
export function apiPaymentConfig(data?: any, method= 'get') {
  if (method === 'get') {
    return axios.get(`${url}paymentConfig`, { data });
  }
  return axios.post(`${url}paymentConfig`, data);
}
